#!/usr/bin/env python
# encoding: utf-8
# @author: Lin Han
# @contact: voldemort22@126.com
# @file: delete_20210421_trash_standard_clamp.py
# @time: 2021/4/21 11:38
# @desc:
import os
import shutil

path = r"D:\data\designorder\DOCenter_Dev\Pythonfiles\new_data\data\standard_clamp"

for i in os.listdir(path):
    file_path = os.path.join(path, i)
    if not os.path.isdir(file_path):

        folder = os.path.join(path, i)
        final_path_file = os.path.join(path, i, os.listdir(folder)[0])
        shutil.move(
            final_path_file,
            file_path + "/",
        )
        print(final_path_file)
